import java.util.concurrent.BlockingDeque;
import java.util.concurrent.LinkedBlockingDeque;

/**
 * @Author: XXHH
 * @CreateTime: 2025-04-27
 */
public class Demo37 {
    public static void main(String[] args) throws InterruptedException {
//        // 只进行拿出操作
//        BlockingDeque<String> queue = new LinkedBlockingDeque<>();
//        String elem = queue.peek();
//        System.out.println(elem);
        BlockingDeque<Integer> queue = new LinkedBlockingDeque<>();
        for (int i = 0;i<100;i++){
            queue.put(10);
        }
        System.out.println("向队列中填充 100个10");
        queue.put(10);
        System.out.println("在填充 1 个 10");

    }
}
